package com.brainstore.patterns.decorator;

/**
 * Created by IntelliJ IDEA.
 * User: Martinez
 * Date: 03.03.12
 * Time: 0:21
 */
public class ConcereteDecoratorA extends Decorator{
    private Component wrappedObject;

    public ConcereteDecoratorA(Component wrappedObject) {
        this.wrappedObject = wrappedObject;
    }

    @Override
    void methodA() {
        //implements methodA
    }

    @Override
    int methodB() {
        //implements methodB
        return 0 + wrappedObject.methodB();
    }

    //you can add new behavior
    void newBehavior() {

    }
}
